const getters = {
  website: state => state.common.website,
  theme: state => state.common.theme,
  isShade: state => state.common.isShade,
  isCollapse: state => state.common.isCollapse,
  screen: state => state.common.screen,
  isLock: state => state.common.isLock,
  isFullScren: state => state.common.isFullScren,
  lockPasswd: state => state.common.lockPasswd,
  tag: state => state.tags.tag,
  tagList: state => state.tags.tagList,
  tagWel: state => state.tags.tagWel,
  userInfo: state => state.user.userInfo,
  themeColor: state => state.user.themeColor,
  themeName: state => state.user.themeName,
  layout: state => state.user.layout,
  access_token: state => state.user.access_token,
  refresh_token: state => state.user.refresh_token,
  tenant: state => state.user.tenant,
  expires_in: state => state.user.expires_in,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  menu: state => state.user.menu,
  project: state => state.user.project,
  system_list: state => state.user.system_list,
  system: state => state.user.system,
  menuAll: state => state.user.menuAll,
  logsList: state => state.logs.logsList,
  logsLen: state => state.logs.logsList.length || 0,
  logsFlag: (state, getters) => getters.logsLen === 0,
  keyCollapse: (state, getters) =>
    getters.screen > 1 ? getters.isCollapse : false,
  isShowPrj: state => state.user.isShowPrj,
  sibar_status: state => state.user.sibar_status,
  taskShowTypeOption: state => state.task.taskShowTypeOption, // 任务类型options
  typeOptions: state => state.task.typeOptions, // 租户options
  user: state => state.task.user, // 租户options
  requireMap: state => state.task.requireMap, // 租户options
  visitedViews: state => state.tagsView.visitedViews, // 当前访问的数组
  cachedViews: state => state.tagsView.cachedViews, // 缓存的数组
  refresh: state => state.menu.refresh, // 刷新左侧菜单
  isShowModal: state => state.menu.isShowModal, // 显示modal
  needMenberShow: state => state.user.needMenberShow, // 登陆是否需要显示选择系统
  currentUser: state => state.user.currentUser, // 登陆是否需要显示选择系统
  systemCode: state => state.user.systemCode, // 当前系统
  routes: state => state.routes.routes, // 当前系统
  sidebar: state => state.app.sidebar,
  systemInfo: state => state.user.systemInfo,
  setting: state => state.settings.setting,
  navList: state => state.nav.navList, // 侧边栏导航数据
  systemList: state => state.user.systemList // 单点的list
};
export default getters;
